package org.unicen.exa.io.worker.assigner.core.model;

import org.unicen.exa.io.worker.assigner.core.state.StatesConstants;

public class ModelBuilder {

	public static Job buildJob(Long id, Integer accountId, Integer profileId, Float weight){
		Job job = new Job();
		job.setId(id);
		job.setAccountId(accountId);
		job.setProfileId(profileId);
		job.setWeight(weight);
		job.setState(StatesConstants.JOB_STATE_PENDING);
		return job;
		
	}

	public static Worker buildWorker(Long id, InstancesType instanceType, Region region, Float maxWeight) {
		Worker worker = new Worker();
		worker.setId(id);
		worker.setInstanceType(instanceType);
		worker.setMaxWeight(maxWeight);
		worker.setRegion(region);
		return worker;
	}
	
}
